package cn.bonoon.entities.interacting;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import cn.bonoon.kernel.support.entities.AbstractPersistable;

@MappedSuperclass
public abstract class AbstractQuestionEntity extends AbstractPersistable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -6532491445010060890L;

	@Column(name = "C_CREATORID")
	private Long creatorId;
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "C_CREATEAT", nullable = false)
	private Date createAt;
	
	@Column(name = "C_CREATORNAME")
	private String creatorName;
	
	@Column(name = "C_OWNERID")
	private long ownerId;

	@Column(name = "C_QUESTION", length = 500)
	private String question;

	@Column(name = "C_ANSWER", length = 4000)
	private String answer;
	
	public Long getCreatorId() {
		return creatorId;
	}
	public void setCreatorId(Long creatorId) {
		this.creatorId = creatorId;
	}
	public Date getCreateAt() {
		return createAt;
	}
	public void setCreateAt(Date createAt) {
		this.createAt = createAt;
	}
	public String getCreatorName() {
		return creatorName;
	}
	public void setCreatorName(String creatorName) {
		this.creatorName = creatorName;
	}
//	public List<String> getRange() {
//		return range;
//	}
//	public void setRange(List<String> range) {
//		this.range = range;
//	}
//	public Boolean isAllRange() {
//		return allRange;
//	}
//	public void setAllRange(Boolean allRange) {
//		this.allRange = allRange;
//	}

	public long getOwnerId() {
		return ownerId;
	}

	public void setOwnerId(long ownerId) {
		this.ownerId = ownerId;
	}
	
	public String getQuestion() {
		return question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}
}
